package com.eugenes.design.cardvalidator;

import com.eugenes.design.Card;

public class CompositeSoftCardValidator extends CompositeCardValidator {

    @Override
    public boolean validate(Card card) {
        boolean result = false;

        for (CardValidator validator : getValidators()) {
            result |= validator.validate(card);
        }

        return validators.isEmpty() || result;
    }
}
